package org.eenie.learn.seedquartz.model;

public class OrderModel {


    /**
     * name : 唐海斌
     * seat_type : 中舱
     * ticket_price : 180.00
     * cardtype : 身份证
     * cardtypeid : 10
     * ticket_type : 成人票
     * idcard : 450902199211011735
     * ticket_type_id : 01
     * seat_type_id : 0113
     * mobile :
     */

    private String name;


    private String cardtype = "身份证";
    private String cardtypeid = "10";
    private String idcard;


    private String seat_type;
    private String ticket_type;
    private String ticket_type_id;
    private String seat_type_id;
    private String ticket_price;

    private String mobile = "15669966995";


    public OrderModel(String name, String idcard, RemoteSeat seatModel) {
        this.name = name;
        this.idcard = idcard;


        seat_type = seatModel.getSeatType();
        ticket_type = seatModel.getTicketType();
        ticket_type_id = seatModel.getTicketTypeCode();
        seat_type_id = seatModel.getSeatTypeCode();
        ticket_price = seatModel.getPrice();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSeat_type() {
        return seat_type;
    }

    public void setSeat_type(String seat_type) {
        this.seat_type = seat_type;
    }

    public String getTicket_price() {
        return ticket_price;
    }

    public void setTicket_price(String ticket_price) {
        this.ticket_price = ticket_price;
    }

    public String getCardtype() {
        return cardtype;
    }

    public void setCardtype(String cardtype) {
        this.cardtype = cardtype;
    }

    public String getCardtypeid() {
        return cardtypeid;
    }

    public void setCardtypeid(String cardtypeid) {
        this.cardtypeid = cardtypeid;
    }

    public String getTicket_type() {
        return ticket_type;
    }

    public void setTicket_type(String ticket_type) {
        this.ticket_type = ticket_type;
    }

    public String getIdcard() {
        return idcard;
    }

    public void setIdcard(String idcard) {
        this.idcard = idcard;
    }

    public String getTicket_type_id() {
        return ticket_type_id;
    }

    public void setTicket_type_id(String ticket_type_id) {
        this.ticket_type_id = ticket_type_id;
    }

    public String getSeat_type_id() {
        return seat_type_id;
    }

    public void setSeat_type_id(String seat_type_id) {
        this.seat_type_id = seat_type_id;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }



    public void setSeat(RemoteSeat seatModel) {
        seat_type = seatModel.getSeatType();
        ticket_type = seatModel.getTicketType();
        ticket_type_id = seatModel.getTicketTypeCode();
        seat_type_id = seatModel.getSeatTypeCode();
        ticket_price = seatModel.getPrice();

    }
}
